Skip to content

fix: reload tree on BufEnter if cwd is different #2527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 12, 2023

Conversation

Akmadan23
Copy link
Collaborator

Not sure if this entirely fixes #2488, but at least the tree gets reloaded when cwd has been changed by another instance of nvim-tree.

Copy link
Member

@alex-courtis alex-courtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works nicely:

  • defaults - changes
  • sync_root_with_cwd - changes
  • respect_buf_cwd - no change

This may not fix the world but it's a great start.

@alex-courtis alex-courtis merged commit 874ae6e into master Nov 12, 2023
@alex-courtis alex-courtis deleted the fix-reload-on-bufenter branch November 12, 2023 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retain Tree State on DirChanged
2 participants